﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HCSExtensions
{
    public static class DecimalManager
    {
        public static string ToMoneyString(this decimal value)
        {
            return value.ToString("N");
        }

        public static decimal? Parse(string text)
        {
            decimal? value = null;
            decimal tempValue;
            if (decimal.TryParse(text, out tempValue))
            {
                value = tempValue;
            }
            return value;
        }
    }
}
